package com.epfresh.api.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by wzh on 2016/5/11.
 */
public class RequestEntityMapSupply extends RequestEntitySupply<Map>{
    @Override
    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public Object putParameter(Object key,Object value){
        if (parameters == null){
            parameters = new HashMap();
        }
        return parameters.put(key,value);
    }

    public Object gettParameter(Object key){
        if (parameters == null){
            parameters = new HashMap();
        }
        return parameters.get(key);
    }
}
